Change the SSH Port in CentOS and Red Hat
Open and edit the SSH daemon configuration file · Bind SSH daemon to the new port · Verify the bind to the new port · Update your firewall · Verify Change by Login.
How to change SSH port on Centos 6, 7, and 8.
Step 1: First, open /etc/ssh/sshd_config and search for the following Port 229 and make sure to choose an unused/not-well-known port (at least > ... How to Change SSH Port on... · How to change SSH port on...
Centos SSH Access
What you should have done (you don't mention it) is change the Port directive in /etc/ssh/sshd_config as well as the port to allow in iptables.
CentOS 7 setting default port - ssh
1. make sure you restart the service after any changes to the config file. · 3. Check for a Port option in either the system wide /etc/ssh_config ...